package lime2;

//: containers/ListPerformance.java
// Demonstrates performance differences in Lists.
// {Args: 100 500} Small to keep build testing short
import lights.interfaces.ITuple;
import sagroup.util.Limes;

public class TestData {
	static Reaction[] allReactions;
	static ITuple[] allTuples;
	static ITuple[] allTemplates;

	public static void generate(int size, int reactionsize) {
		allReactions = new Reaction[reactionsize];
		allTuples = TupleGenerator.toArray(size);
		allTemplates = TupleGenerator.toArray(reactionsize);
		// prepare tuples as test data set.
		for (int i = 0; i < allTemplates.length; i++) {

			CountAndDispReactionListener listener = new CountAndDispReactionListener();
			allReactions[i] = new Reaction(Reaction.ONCEPERTUPLE, Limes
					.createHHTemplate(allTemplates[i]), listener);
		}
	}
}
